@layout("/common/_container.html",{js:["/assets/tool/toolInstall/toolInstall_edit.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">添加</span>
</div>

<div class="layui-fluid " style="">
    <div class="layui-card">
        <div class="layui-card-body">
            <form id="toolInstallForm" lay-filter="toolInstallForm" class="layui-form layui-form-pane" style="max-width: 700px;margin: 40px auto;">
                <input name="id" type="hidden"/>
                <div class="layui-form-item">
                    <label class="layui-form-label" style="font-weight: 600;">客户<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <select id="customerId" name="customerId" lay-filter="customerId" lay-verify="required" required>
                            @for(item in customerlist!){
                            <option value="${item.id}">${item.customerName}</option>
                            @}
                        </select>
                    </div>
                </div>
                <fieldset class="layui-elem-field layui-field-title" style="margin-top: 2px;">
			    	<legend>设置计件类型</legend>
			  	</fieldset>
                <div class="layui-form-item">
                    <label class="layui-form-label">计件类型<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <select id="priceType" name="priceType" lay-filter="priceType" lay-verify="required" required>
                            <option value="订单">订单</option>
                            <option value="预包">预包</option>
                        </select>
                    </div>
                </div>
                <fieldset class="layui-elem-field layui-field-title" style="margin-top: 2px;">
			    	<legend>设置商品组合数量</legend>
			  	</fieldset>
                <div class="layui-form-item">
                    <label class="layui-form-label">方式<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <select id="goodsMode" name="goodsMode" lay-filter="goodsMode" lay-verify="required" required>
                            <option value="区间">区间</option>
                            <option value="大于">大于</option>
                            <option value="小于">小于</option>
                            <option value="等于">等于</option>
                            <option value="大于等于">大于等于</option>
                            <option value="小于等于">小于等于</option>
                        </select>
                    </div>
                </div>
                  <div class="layui-form-item" id="gNum_d">
				    <div class="layui-inline">
				      <label class="layui-form-label">范围</label>
				      <div class="layui-input-inline" style="width: 200px;">
                        <input id="gNum" name="gNum" placeholder="" type="text" class="layui-input" lay-verify="" required/>
				      </div>
				      <div class="layui-form-mid">-</div>
				      <div class="layui-input-inline" style="width: 200px;">
                        <input id="gNum2" name="gNum2" placeholder="" type="text" class="layui-input" lay-verify="" required/>
				      </div>
				    </div>
				  </div>
                <div class="layui-form-item" id="v1_d">
                    <label class="layui-form-label">数量</label>
                    <div class="layui-input-block">
                        <input id="v1" name="v1" placeholder="请输入数量" type="number" class="layui-input" lay-verify="" required/>
                    </div>
                </div>
                <fieldset class="layui-elem-field layui-field-title" style="margin-top: 2px;">
			    	<legend>设置单量</legend>
			  	</fieldset>
                <div class="layui-form-item">
                    <label class="layui-form-label">方式<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <select id="orderMode" name="orderMode" lay-filter="orderMode" lay-verify="required" required>
                            <option value="区间">区间</option>
                            <option value="大于">大于</option>
                            <option value="小于">小于</option>
                            <option value="等于">等于</option>
                            <option value="大于等于">大于等于</option>
                            <option value="小于等于">小于等于</option>
                        </select>
                    </div>
                </div>
                  <div class="layui-form-item" id="oNum_d">
				    <div class="layui-inline">
				      <label class="layui-form-label">范围</label>
				      <div class="layui-input-inline" style="width: 200px;">
                        <input id="oNum" name="oNum" placeholder="" type="text" class="layui-input" lay-verify="" required/>
				      </div>
				      <div class="layui-form-mid">-</div>
				      <div class="layui-input-inline" style="width: 200px;">
                        <input id="oNum2" name="oNum2" placeholder="" type="text" class="layui-input" lay-verify="" required/>
				      </div>
				    </div>
				  </div>
                <div class="layui-form-item" id="v2_d">
                    <label class="layui-form-label">数量</label>
                    <div class="layui-input-block">
                        <input id="v2" name="v2" placeholder="请输入单量" type="number" class="layui-input" lay-verify="" required/>
                    </div>
                </div>
                <fieldset class="layui-elem-field layui-field-title" style="margin-top: 2px;">
			    	<legend>设置单价</legend>
			  	</fieldset>
                <div class="layui-form-item">
                    <label class="layui-form-label">单价<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="price" name="price" placeholder="请输入单价" type="number" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
                        <button class="layui-btn layui-btn-primary" type="button" id="backupPage">&emsp;返回&emsp;</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

@}